package cqut.wys.bean;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by wuyoushan on 2017/9/24.
 */
@Data
public class BookBean {
    private String id;
    private String title;
    private String author;
    private Integer word_count;

    @DateTimeFormat(iso=DateTimeFormat.ISO.DATE)
    //等价于@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date public_date;
}
